package org.example.curriculum_design_6_16.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.curriculum_design_6_16.entity.pojo.AttendanceAbsence;
import org.example.curriculum_design_6_16.service.AttendanceAbsenceService;
import org.example.curriculum_design_6_16.mapper.AttendanceAbsenceMapper;
import org.example.curriculum_design_6_16.service.SocialServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 郑凯
* @description 针对表【attendance_absence】的数据库操作Service实现
* @createDate 2025-06-18 19:00:52
*/
@Service
public class AttendanceAbsenceServiceImpl extends ServiceImpl<AttendanceAbsenceMapper, AttendanceAbsence>
    implements AttendanceAbsenceService{

    @Autowired
    private AttendanceAbsenceMapper attendanceAbsenceMapper;

    public int getAttendanceAbsenceCount(String studentId, String academicYear) {
        return attendanceAbsenceMapper.countUnapprovedAbsences(studentId, academicYear);
    }

}




